import WHFlowEditor from './src/packages/wh-flow-editor/index.js';
import WHFlowList from './src/packages/wh-flow-list/index.js';
import WHFlowDisplay from './src/packages/wh-flow-display/index.js';
// import WHSvgIcon from './src/packages/wh-svg-icon/index.js';
const components = [
  // WHSvgIcon,
  WHFlowEditor,
  WHFlowList,
  WHFlowDisplay
]

const install = (Vue) => {
  if (install.installed) return
  install.installed = true
  components.forEach(component => {
    Vue.component(component.name, component);
  });

};
/* istanbul ignore if */
if (typeof window !== 'undefined' && window.Vue) {
  install(window.Vue);
}

export const whFlowList = WHFlowList

export const whFlowEditor = WHFlowEditor

// export const whSvgIcon = WHSvgIcon

export const whFlowDisplay = WHFlowDisplay

export default {
  install,
  // WHSvgIcon,
  WHFlowEditor,
  WHFlowList,
  WHFlowDisplay
}

